import { createRouter, createWebHistory } from 'vue-router'
import HelloWorld from '@/components/HelloWorld.vue'

import layOut from '@/layout/index.vue'

const routes = [{
    path: '',
    name: 'index',
    component: layOut,
    redirect: '',
    children: [{
        path: '',
        component: () => import('@/views/index.vue'),
        name: 'Index',
        meta: { title: '首页', icon: 'monitor', affix: true }
    }]
}, ]

const router = createRouter({
    history: createWebHistory(import.meta.env.BASE_URL),
    routes: routes
})

export default router